package com.jshop.controller.admin;



import java.util.List;

import com.jfinal.aop.Before;
import com.jfinal.core.Controller;
import com.jfinal.kit.JsonKit;
import com.jshop.interceptor.AdminInterceptor;
import com.jshop.model.Menu;
@Before(AdminInterceptor.class)
public class AdminController extends Controller {
	//private MenuService menuService = Duang.duang(MenuService.class);
	public void index(){
		List<Menu> supermenulist=Menu.dao.find("select * from menu order by menu_order asc");
		System.out.println(JsonKit.toJson(supermenulist));
		setAttr("menulist", supermenulist);
		render("index.html");
	}
	public void tpl(){
		render("tpl.html");
	}
	public void home(){
		render("home.html");
	}
	
}
